package Question.person;

public class HeadTeacher extends Teacher{
    private String classname;
    public HeadTeacher(){
    }
    public HeadTeacher(String name,int age,String gender,String teacherid,String subject,String classname){
        super(name, age, gender, teacherid, subject);
        this.classname=classname;
    }
    public String getClassname(){
        return classname;
    }
    public void setClassname(String classname)
    {
        this.classname=classname;}
    public void managerclass()
    {
        System.out.println(getName()+"在管理"+classname);
        }
    }

